package cn.wolfcode.luowowo.community.service.impl;

import cn.wolfcode.luowowo.community.domain.Answer;
import cn.wolfcode.luowowo.community.mapper.AnswerMapper;
import cn.wolfcode.luowowo.community.query.AnswerQuery;
import cn.wolfcode.luowowo.community.service.IAnswerService;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class AnswerServiceImpl implements IAnswerService {

    @Autowired
    private AnswerMapper answerMapper;

    @Override
    public List<Answer> selectForList(Long id) {
        return answerMapper.selectForList(id);
    }

    public PageInfo query(AnswerQuery qo) {

        /*PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());

        return new PageInfo(answerMapper.selectForList(qo));*/
        return null;
    }
}
